查询用户捐赠单列表
商户可根据品牌ID与用户标识查询捐赠单列表
| 请求参数 | 类型 | 描述 |
|---|---|---|
| openid | string | 用户在商户AppID下的唯一标识 |
| brand_id | string | 品牌ID |
| query | object | 声明请求的查询参数 |
| offset | integer | 请求资源起始位置 |
| limit | integer | 最大资源条数 |
php
$instance->v3->lovefeast->users->_openid_->orders->brandId->_brand_id_->getAsync([
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'brand_id' => '2250',
'query' => [
'offset' => 0,
'limit' => 20,
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$instance->chain('v3/lovefeast/users/{openid}/orders/brand-id/{brand_id}')->getAsync([
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'brand_id' => '2250',
'query' => [
'offset' => 0,
'limit' => 20,
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$instance['v3/lovefeast/users/{openid}/orders/brand-id/{brand_id}']->getAsync([
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'brand_id' => '2250',
'query' => [
'offset' => 0,
'limit' => 20,
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$response = $instance->v3->lovefeast->users->_openid_->orders->brandId->_brand_id_->get([
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'brand_id' => '2250',
'query' => [
'offset' => 0,
'limit' => 20,
],
]);
print_r(json_decode((string) $response->getBody(), true));php
$response = $instance->chain('v3/lovefeast/users/{openid}/orders/brand-id/{brand_id}')->get([
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'brand_id' => '2250',
'query' => [
'offset' => 0,
'limit' => 20,
],
]);
print_r(json_decode((string) $response->getBody(), true));php
$response = $instance['v3/lovefeast/users/{openid}/orders/brand-id/{brand_id}']->get([
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'brand_id' => '2250',
'query' => [
'offset' => 0,
'limit' => 20,
],
]);
print_r(json_decode((string) $response->getBody(), true));| 返回字典 | 类型 | 描述 |
|---|---|---|
| count | integer | 该次请求返回的记录条数 |
| limit | integer | 最大记录条数 |
| offset | integer | 起始位置 |
| total_count | integer | 全部记录数量 |
| data | object[] | 结果集 |
| welfare_trade_id | string | 捐赠订单号 |
| appid | string | 应用ID |
| sub_appid | string | 子商户应用ID |
| brand_id | string | 品牌ID |
| donate_source | string | 捐赠来源MINIPROGRAM_PAY | ENTRUST_PAY 枚举值之一 |
| merchant_order | string | 商户订单 |
| institution_name | string | 捐赠机构名称 |
| business_id | string | 捐赠项目编号 |
| business_name | string | 捐赠活动名称 |
| success_time | string | 支付完成时间 |
| payer | object | 支付者 |
| openid | string | 用户标识 |
| sub_openid | string | 用户子标识 |
| avatar | string | 用户头像URL |
| nickname | string | 用户昵称 |
| amount | object | 订单金额 |
| total | number | 总金额 |
| payer_total | number | 用户支付金额 |
| currency | string | 货币类型 |
| payer_currency | string | 用户支付币种 |
| device_id | string | 设备编号 |